<!DOCTYPE html>
<html class="no-js">
    <head>
<?php include("includes/header.php");

$tabla="cursos";
$condicion=" cur_habilitado=1 and cur_id=".$_GET['cur_id'];
$orden=" ";
$res=cons_sql($tabla,$condicion,$orden);
$reg=mysql_fetch_array($res);



 ?>
 


    </head>
    <body>
<?php include("includes/navegacion.php"); ?>

<?php include("includes/detalleCursos.php"); ?>

                    <!-- Info lateral -->
                    <div id="detalles" class="course-sidebar span4">

<?php include("includes/infoCursos.php"); ?>     
          
<?php include("includes/profesoresCursos.php"); ?>    
                        
<?php include("includes/testimoniosCursos.php"); ?>   
                        

                    </div> <!-- / Info lateral -->

                </div>

                <div class="row">
                    <div class="span8">
                        <!-- Call to action -->
                        <a href="#consultar-curso" class="call-to-action btn btn-warning btn-large" data-toggle="modal">
                            Consultar sobre &eacute;ste curso
                        </a>
                    </div>
                </div>
            </div>    

            <!-- Formulario de consulta -->
            <form action="<?php echo URL?>/reservar.php" class="modal hide fade form-horizontal" id="consultar-curso">
                <!-- <div class="modal-header">
                    <h4>Consultar sobre éste curso</h4>
                </div> -->
                <div class="modal-body">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                     <div id="loading"></div>
					<div id="result">
                    <p class="lead">Dejanos tus datos y nos pondremos en contacto con vos a la brevedad.</p>
                    
                    <hr>
                    <input type="hidden" id="inputCurso" value="<?php echo $_GET['cur_id']?>">
					<input type="hidden" id="inputCursoNombre" name="inputCursoNombre" value="<?php echo $_GET['title']?>">
                    <div class="control-group">
                        <label for="inputNombre" class="control-label">Nombre y apellido</label>
                        <div class="controls"><input type="text" id="inputNombre" name="inputNombre" required></div>
                    </div>
                    <div class="control-group">
                        <label for="inputMail" class="control-label">Email</label>
                        <div class="controls"><input type="text" id="inputMail" name="inputMail" required></div>
                    </div>
                    <div class="control-group">
                        <label for="inputTelefono" class="control-label">Tel&eacute;fono</label>
                        <div class="controls"><input type="text" id="inputTelefono" name="inputTelefono" required></div>
                    </div>
                    <div class="control-group">
                        <label for="inputLocalidad" class="control-label">Localidad</label>
                        <div class="controls"><input type="text" id="inputLocalidad" name="inputLocalidad" required></div>
                    </div>
                    <div class="control-group">
                        <span class="control-label">Horarios en que podes asistir</span>
                        <div class="controls">
                            <?php echo  $grupos;?>
                           
                        </div>
                    </div>
                    <div class="control-group">
                        <label for="inputAclaraciones" class="control-label">Aclaraciones</label>
                        <div class="controls"><textarea id="inputAclaraciones" rows="3" name="inputAclaraciones" required></textarea></div>
                    </div>
                </div>
                <div class="modal-footer">
                    <a href="#" class="btn btn-link" data-dismiss="modal">Cerrar</a>
                    <button type="submit" class="btn btn-primary" id="Enviar">Enviar consulta</button>
                </div>
				
				</div>
            </form>

        </section>


        
 <?php include("includes/relacionadosCursos.php"); ?>

<?php include("includes/footer.php"); ?>


        <!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> -->
        <script>window.jQuery || document.write('<script src="<?php echo URL?>/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>

        <script src="<?php echo URL?>/js/vendor/bootstrap.min.js"></script>
        <script src="<?php echo URL?>/js/vendor/holder.js"></script>

        <script src="<?php echo URL?>/js/plugins.js"></script>
        <script src="<?php echo URL?>/js/main.js"></script>

        <script>
            // var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
            // (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
            // g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
            // s.parentNode.insertBefore(g,s)}(document,'script'));
        </script>
    </body>
</html>
